
//swiper 切换启动
var mySwiper = new Swiper('.swiper-container',{
    direction:'horizontal',
    loop: true,
//        autoPlay:3000,
    onFirstInit: function(swiper){ //Swiper2.x的初始化是onFirstInit
        swiperAnimateCache(swiper); //隐藏动画元素
        swiperAnimate(swiper); //初始化完成开始动画
    },
    onSlideChangeEnd: function(swiper){
        swiperAnimate(swiper); //每个slide切换结束时也运行当前slide动画
    }
});


//var w = window.screen.width;
var $w = $(window).outerWidth();
//console.log(w);
console.log($w);
$('html').css('fontSize',$w/10);